const reducer = (prevState={
        isLodaing:true
    },action)=>{
        let {type,payload} =action
        switch(type){
            case "change_Loading":
                let newstate = {...prevState}
                newstate.isLodaing = payload
                return newstate
            default:
                return prevState
        }
}
export default reducer